package cn.zlp.order.service;


import cn.zlp.basic.service.IBaseService;
import cn.zlp.basic.util.PageList;
import cn.zlp.order.domain.AdoptOrder;
import cn.zlp.order.query.AdoptOrderQuery;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

public interface IAdoptOrderService extends IBaseService<AdoptOrder> {

    /**
     * 领养订单
     * @param params
     * @param request
     * @return
     */
    String submit(Map<String, Object> params, HttpServletRequest request);

    /**
     * 查询管理员领养订单消息 - 后台系统
     * @param adoptOrderQuery
     * @param request
     * @return
     */
    PageList<AdoptOrder> adminAdoptOrder(AdoptOrderQuery adoptOrderQuery, HttpServletRequest request);

    /**
     * 查询用户领养订单消息 - 前台系统
     * @param adoptOrderQuery
     * @param request
     * @return
     */
    PageList<AdoptOrder> userAdoptOrder(AdoptOrderQuery adoptOrderQuery, HttpServletRequest request);

    /**
     * 取消订单
     * @param id
     */
    void cancelOrder(long id);
}
